<?php

namespace App\Models\V1;

use Illuminate\Database\Eloquent\Factories\HasFactory;

class SysLoginLogs extends BaseModel
{
    use HasFactory;
    protected $table="sys_login_logs";
    protected $fillable=[
        'admin_id',
        'user_name',
        'ip',
        'login_location',
        'browser',
        'os',
        'state',
        'msg'
    ];

    public function getStateAttribute()
    {
        return (string)$this->attributes['state'];
    }
}
